﻿namespace Stickers.Common;

/// <summary>
/// 表示某一页的实体对象列表。
/// </summary>
/// <typeparam name="TEntity">实体对象的类型。</typeparam>
public sealed class Paginated<TEntity> where TEntity : class, IEntity
{
    public List<TEntity> Items { get; set; } = [];
    
    public int PageIndex { get; set; }
    
    public int PageSize { get; set; }
    
    public long TotalCount { get; set; }

    public int TotalPages { get; set; }
}